package cn.edu.sdjzu.xg.eagle.entity;

import lombok.*;

import java.io.Serializable;

/**
 * @author tg.si@188.com
 * @project xg23
 * @date 2025/3/26
 */

//如果有双向关联，则不能@ToString，以避免递归引用
//@ToString
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class Teacher implements Actor, Serializable {
    private Long id;
    private String no;
    private String name;
    private User user;

    public Teacher(Long id, String name, String no) {
        this.id = id;
        this.name = name;
        this.no = no;
    }
}
